package com.demo.user.service;

import com.demo.user.api.SmsService;
import com.learning.crpc.annotation.CrpcReference;
import org.springframework.stereotype.Service;

/**
 * @program: diy_rpc
 * @description:
 * @author: CaoYong
 * @create: 2021-06-30 09:31
 **/

@Service
public class UserService {

    @CrpcReference
    SmsService smsService;

    public String registerUser() {
        System.out.println("test");
        String result = smsService.sendMessage("11111", "hello");
        return result;
    }
}
